package com.fc.design.singleton;

/**
 * <p> Author：lidongxu </p>
 * <p> Title：</p>
 * <p> Description：
 *      饿汉模式
 *          创建类的同事创建了一个静态的对象，之后不再改变
 * </p>
 * <p> Create Time：2020-03-30 11:12 </p>
 */
public class HungrySingleton {

    private static final HungrySingleton instance = new HungrySingleton();

    private HungrySingleton() {

    }

    public static HungrySingleton getInstance() {
        return instance;
    }
}
